:root {
	--totalWid: 100%;
	--themeColor: #00bdff;
}

html,
body {
	width: var(--totalWid);
}

/* 头部 */
#header {
	width: 100%;
	height: 66px;
}

header {
	top: 0;
	left: 0;
	z-index: 40;
	padding: 0 20px;
	width: 100%;
	height: 66px;
	border-bottom: 1px solid #ddd;
}

header > a {
	display: block;
	width: 138px;
	height: 66px;
}

header > a h1 {
	height: 66px;
	background: url(../imgs/new-logo-white2.png) no-repeat;
}

header ul {
	height: 66px;
}

header ul li {
	margin: 10px;
	height: 64px;
	line-height: 64px;
}

header ul li a {
	color: #000;
}

header ul li.active {
	border-bottom: 2px solid var(--themeColor);
}

header ul li.active a {
	color: var(--themeColor);
}

header div span {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 15px;
	font-size: 12px;
}

header div span:first-child {
	border: 1px solid #000;
}

header div span:last-child {
	background-color: #ed510a;
}

/* 主体部分 */
main {
	width: 100%;
}

/* API分类 */
#apiCate {
	padding-top: 50px;
	width: 100%;
	height: 280px;
}

#apiCate div h2 {
	line-height: 60px;
	font-size: 22px;
}

#apiCateList {
	display: flex;
	flex-wrap: wrap;
}

#apiCateList li {
	margin-right: 10px;
	margin-bottom: 10px;
	padding: 8px 16px;
	color: #666;
	border: 1px solid #ececec;
	border-radius: 10px;
	cursor: pointer;
}

#apiCateList li.active {
	color: var(--themeColor);
	border: 1px solid var(--themeColor);
}

#apiCate div div {
	margin-top: 50px;
}
#searchInput input {
	width: 230px;
	height: 30px;
	background-color: rgb(244, 244, 244);
	border-radius: 10px;
	border: 1px solid rgb(244, 244, 244);
	padding-left: 20px;
}

#apiCate div div strong {
	margin-right: 20px;
}

/* 卡片区域 */
#apiCards {
	width: 100%;
	margin-top: 25px;
}
#apiCardsList {
	display: flex;
	flex-wrap: wrap;
}
#apiCardsList li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 224px;
	height: 270px;
	border: 1px solid #666;
	margin-right: 10px;
	margin-bottom: 10px;
	overflow: hidden;
}
#apiCardsList p:nth-child(2) {
	font-size: 15px;
	color: rgb(102, 102, 102);
	line-height: 30px;
}

#apiCardsList li > span {
	top: 10px;
	left: 10px;
	padding: 4px 8px;
	background-color: #e5f8ff;
	color: var(--themeColor);
	font-size: 12px;
}
#apiCardsList li a {
	width: 190px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	background-color: var(--themeColor);
	color: #fff;
	bottom: -31px;
	transition: bottom 0.5s ease-out;
}
#apiCardsList li:hover {
	box-shadow: 6px 6px 18px rgb(102, 102, 102);
}
#apiCardsList li:hover a {
	bottom: 20px;
}
/* 翻页器 */
#pagination {
	width: 100%;
	height: 30px;
}
#pagination ul {
	display: flex;
	justify-content: center;
}
#pagination-box {
	width: 1200px;
	margin: 0 auto;
}
#pagination li {
	width: 30px;
	height: 30px;
	line-height: 30px;
	margin-right: 5px;
	text-align: center;
	border-radius: 50%;
	background-color: var(--themeColor);
}
/* 尾部区域 */
footer {
	width: 100%;
	height: 250px;
	padding-top: 40px;
}
#footer-box1 {
	width: 1200px;
	height: 250px;
	margin: 0 auto;
}
#footer-box1 ul {
	width: 130px;
	height: 115px;
	line-height: 27px;
}
#footer-box1 ul li a {
	font-size: 10px;
	color: rgb(149, 149, 155);
}
#footer-box2 {
	width: 700px;
	height: 250px;
	/* background-color: aqua; */
	display: flex;
	justify-content: space-between;
}
#footer-box3 {
	display: flex;
	justify-content: flex-end;
	width: 500px;
	height: 250px;
	/* background-color: rgb(255, 0, 98); */
}
#footer-box3 ul {
	text-align: right;
}
#footer-box2 li:nth-child(1) {
	margin: 20px 0;
}
#footer-box3 li:nth-child(1) {
	margin-top: 20px;
}
#footer-box3 li:nth-child(2) {
	margin-bottom: 20px;
}
#footer-bottom {
	width: 100%;
	height: 60px;
	/* background-color: #0d60d0; */
}
#footer-bottom-box1 {
	width: 1200px;
	height: 60px;
	/* background-color: aqua; */
	margin: 0 auto;
}
#footer-bottom-box1 p {
	color: rgb(149, 149, 155);
}
#footer-bottom-box2 {
	display: flex;
}
/* 蒙层区域 */
#mask {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 70;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 30%);
}

#loginModal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	padding: 26px 20px;
	width: 400px;
	height: 550px;
	background-color: #fff;
}

#loginModal input {
	border: none;
	outline: none;
}

#loginModalLogo {
	margin: 0 auto;
	margin-bottom: 26px;
	width: 180px;
	height: 50px;
	background: url(../imgs/new-logo-white2.png) no-repeat;
}

#loginModalTab {
	display: flex;
	align-items: center;
	margin-bottom: 30px;
	width: 100%;
	height: 40px;
}

#loginModalTab a {
	width: 160px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	font-size: 16px;
	color: #555555;
}

#loginModalTab a.active {
	position: relative;
	color: var(--themeColor);
}

#loginModalTab a.active::after {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%);
	display: block;
	content: "";
	width: 30%;
	height: 2px;
	background-color: var(--themeColor);
}

#loginModalTab i {
	width: 1px;
	height: 20px;
	background-color: #eeeeee;
}

#loginUser {
	margin-bottom: 15px;
	line-height: 40px;
	border-bottom: 1px solid #e7e7e7;
}

#loginUser i {
	position: relative;
	top: 4px;
	display: inline-block;
	width: 20px;
	height: 30px;
	background-image: url(../imgs/loginIcon.png);
	background-position: 24px 4px;
}

#loginPwd {
	margin-bottom: 15px;
	line-height: 40px;
	border-bottom: 1px solid #e7e7e7;
}

#loginPwd i {
	position: relative;
	top: 4px;
	display: inline-block;
	width: 20px;
	height: 30px;
	background-image: url(../imgs/loginIcon.png);
	background-position: 55px 4px;
}

#forgetPwd {
	line-height: 50px;
}

#forgetPwd a {
	color: var(--themeColor);
}

#loginModal form {
	display: none;
}

#loginModal #loginForm [type="submit"] {
	width: 100%;
	height: 45px;
	line-height: 45px;
	text-align: center;
	background-color: var(--themeColor);
	color: #fff;
	font-size: 16px;
}

#loginModal #loginForm p:last-child {
	line-height: 50px;
	font-size: 14px;
	color: #909090;
}

#loginModal #loginForm p:last-child a {
	color: var(--themeColor);
}

#loginModal #QRForm div {
	margin: 0 auto;
	width: 288px;
	height: 240px;
	border: 1px solid #eeeeee;
	flex-direction: column;
}

#loginModal #QRForm div img {
	width: 118px;
	height: 118px;
}

#loginModal #QRForm div p {
	line-height: 36px;
	font-size: 14px;
}

#loginModal #QRForm > p:last-child {
	text-indent: 34px;
	line-height: 60px;
}

#loginModal #QRForm p:last-child a {
	color: var(--themeColor);
}
